<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>VIP播放</title>


<style>



a {
    text-decoration: none;
    color: #08acee;
}



.aui-footer {
    width: 100%;
    position: relative;
    z-index: 100;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    background: #ffffff;



}

.aui-tabBar-item {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    color: #979797;
/*    background: -webkit-linear-gradient(left top, #f370af , #5515ee);
    background: -o-linear-gradient(bottom right, #f370af , #5515ee);
    background: -moz-linear-gradient(bottom right, #f370af , #5515ee);
    background: linear-gradient(to bottom right, #f370af , #5515ee);
    background-color: #f370af;

	*/
    padding: 0.7rem 0;
}





.aui-tabBar-item-text {
    display: inline-block;
    font-size: 1rem;
    color: #fade8a;
    padding-top: 2px;
}

.aui-tabBar-item-active .aui-tabBar-item-text {
    color: #fd8926;
}

.aui-footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 49;
}







.aui-footer {
    width: 100%;
 /*   position: relative;  */
    z-index: 100;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    background: #da5030;
	    background: linear-gradient(to bottom, #a241cf, #bb4fc6);
}

.aui-tabBar-item {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    color: #ffffff;
    font-weight:bold;
    padding:0.8rem 0;
}

.aui-tabBar-item-text {
    display: inline-block;
    font-size: 0.65rem;
    color: #fff;
    padding-top: 2px;
}

.aui-tabBar-item-active .aui-tabBar-item-text {
    color: #fa9829;
}



.aui-footer-fixed {
 /*   position: fixed;  */
    bottom: 0;
    left: 0;
    z-index: 49;
}


.aui-tabBar-item-one{
    background:#000 ;
    position:relative;
}

.aui-tabBar-item-two{
    position:relative;
}

.aui-tabBar-item-two .aui-hot-icon{
    right:15px;
    top:10px;
    width:20px;
}

.aui-tabBar-item-two .aui-hot-icon img{
    width:20px;
}





.aui-tabBar-item-two:after{
    content: '';
    position: absolute;
    z-index: 0;
    top: 10px;
    right: 0;
    height: 50%;
    border-right: 2px solid #802cd0;
    -webkit-transform: scaleX(0.5);
    transform: scaleX(0.5);
    -webkit-transform-origin: 100% 0;
    transform-origin: 100% 0;
}

.aui-hot-icon{
	position: absolute;
    right: 3px;
    top: 0px;
    width: 30px;
}

.aui-hot-icon img{
    width:30px;
    display:block;
    border:none;
}

.aui-tabBar-item-three{
    position:relative;
}

.aui-tabBar-item-three .aui-hot-icon{
    right:15px;
    top:10px;
    width:20px;
}

.aui-tabBar-item-three .aui-hot-icon img{
    width:20px;
}









.aui-info-box {
    margin-top: 0.5rem;
    background: #fef6e9;
}


.aui-flex {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    padding: 0 15px 0 15px;
    position: relative;
}

.aui-i-img {
    width: 15px;
    height: 15px;
    margin-right: 0.3rem;
}


.aui-i-img img {
    width: 15px;
    height: 15px;
    display: block;
    border: none;
}


.aui-flex-box {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: #333;
}

.aui-flex-box p {
    color: #fcb63a;
    font-size: 0.85rem;
}


.aui-flex-one {
    padding: 15px 0;
}

.aui-flex-box {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: #333;
}

.aui-mine-cell {
    background: -webkit-linear-gradient(left, #aeccfe , #a779fd);
    background: -o-linear-gradient(right, #aeccfe , #a779fd);
    background: -moz-linear-gradient(right, #aeccfe , #a779fd);
    background: linear-gradient(to right, #aeccfe , #a779fd);
    margin: 0 0.5rem;
    border-radius: 10px;
    text-align: center;
    padding: 0.2rem 0;
    box-shadow: 0 3px 10px #aeccfe;
}


.aui-mine-cell h2 {
    color: rgba(255,255,255,0.98);
    margin-bottom: 0.3rem;
    font-weight: bold;
}



.aui-flex-box .aui-mine-cell p {
    color: rgba(255,255,255,0.98);
}


.aui-mine-cell-one {
    background: -webkit-linear-gradient(left, #feb97e , #ff6c7f);
    background: -o-linear-gradient(right, #feb97e , #ff6c7f);
    background: -moz-linear-gradient(right, #feb97e , #ff6c7f);
    background: linear-gradient(to right, #feb97e , #ff6c7f);
    box-shadow: 0 3px 10px #feb97e;
}



.aui-img-ad {
    margin: 10px 0;
}

.aui-img-ad img {
    border: 0;
    width: 100%;
    height: auto;
    display: block;
}


.aui-flex-clear {
    padding: 5px 8px 10px 0;
}



.aui-flex-box {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: #333;
}

.aui-flex-clear .aui-flex-box {
    margin-left: 8px;
}

.aui-flex-box img {
    border: 0;
    width: 100%;
    height: auto;
    display: block;
}


.nav{width:100%;height:40px;position:fixed;top:295px;left:0;    z-index: 149;}
</style>


</head>
<body style=" margin-top: 338px; overflow-y: hidden; overflow-x: hidden; ">

<div class = "nav" style="background: linear-gradient(to right, #f370af , #5515ee);    display: flex;  ">
                <a  tapmode="active" onclick="share()" class="aui-tabBar-item aui-tabBar-item-one">

                    <span class="aui-tabBar-item-text">分享好友</span>
					<span class="aui-hot-icon" id="fenxiang_img">
                        <img src="">
                    </span>

                </a>

                <a  onclick="look_record()" class="aui-tabBar-item aui-tabBar-item-two">
                    <span class="aui-tabBar-item-text">观看记录</span>
                    <span class="aui-hot-icon">
                        <img src="">
                    </span>
                </a>

                <a  tapmode onclick="jieXi()" class="aui-tabBar-item aui-tabBar-item-three ">
                    <span class="aui-tabBar-item-text">更换线路</span>
                    <span class="aui-hot-icon">
                        <img src="">
                      </span>
                </a>
</div>



<div class="aui-info-box">
                    <div class="aui-flex">
                        <div class="aui-i-img">
                            <img src="">
                        </div>
                        <div class="aui-flex-box">
                            <p>请勿相信视频中的任何广告/网址信息 谨防上当受骗</p>
                        </div>
                        <div class="icon-close">
                            <i class="icon icon-close"></i>
                        </div>
                    </div>
                </div>






<div class="aui-flex aui-flex-one" id="analysis_text_list">


									<script type="text/x-dot-template" id="analysis_text_template">

										{{~ it.analysis_pay_text_ad : value : index }}

										<div class="aui-flex-box" onclick="toBanner('{{= value. linkurl }}')">
											<div class="aui-mine-cell  aui-mine-cell-one">
												<h2>{{= value. name }}</h2>
												<p>{{= value. content }}</p>
											</div>
										</div>

										{{~}}

									</script>
			<!--

				<div class="aui-flex-box">
					<div class="aui-mine-cell  aui-mine-cell-one">
						<h2>赚彩虹币</h2>
						<p>做任务轻松赢取彩虹币</p>
					</div>
				</div>


				<div class="aui-flex-box">
					<div class="aui-mine-cell">
						<h2>邀请好友</h2>
						<p>邀请好友赢500元现金</p>
					</div>
				</div>

				-->
			</div>




	<div id="analysis_pay_banner_ad_list">



									<script type="text/x-dot-template" id="analysis_pay_banner_ad_template">

										{{~ it.analysis_pay_banner_ad : value : index }}


										<div class="aui-img-ad" onclick="toBanner('{{= value. linkurl }}')">
											<img src="http://ys.a1j5.shop/{{= value. picurl }}">
										</div>


										{{~}}

									</script>

<!--		<div class="aui-img-ad">
			<img src="/images/ad-001.png" >
		</div>
-->
	</div>



<div class="aui-flex aui-flex-clear" id="analysis_pay_three_diagram_ad_list">


									<script type="text/x-dot-template" id="analysis_pay_three_diagram_ad_template">

										{{~ it.analysis_pay_three_diagram_ad : value : index }}

										<div class="aui-flex-box" onclick="toBanner('{{= value. linkurl }}')">
											<img src="http://ys.a1j5.shop/{{= value. picurl }}">
										</div>


										{{~}}

									</script>


<!--
			<div class="aui-flex-box">
				<img src="/images/sc-ad1.png" alt="">
			</div>

-->
		</div>




</body>






<script type="text/javascript" src="../script/api.js" ></script>
<script type="text/javascript" src="../script/doT.js"></script>
<script type="text/javascript">


	var api_url = localStorage.getItem('api_url');

    var jx_url1 = localStorage.getItem('jx_url1');
    var jx_url2 = localStorage.getItem('jx_url2');



    apiready = function(){


	
	
   //  alert('播放:'+api.pageParam.url);
	  
	
	 


	api.parseTapmode();
		
	/*	
				api.showProgress({
				    title: '正在加载',
				    text: '请稍等',
				    modal: false
				});
				
 	*/


		if(localStorage.getItem('app_working_mode') == 1){  //如果工作模式为返佣

                fenxiang_img.innerHTML = ' <img src="">';

		}



		getDate();  //获取数据


      api.parseTapmode();
      var header = $api.byId('aui-header');
      $api.fixStatusBar(header);
      var headerPos = $api.offset(header);
      var body_h = $api.offset($api.dom('body')).h;

      api.addEventListener({
          name: 'keyback'
      }, function(ret, err) {
        api.setScreenOrientation({
            orientation: 'portrait_up'
        });
        api.closeWin();
		
		var browser = api.require('webBrowser');
		browser.closeView();
		
		
      });



	// alert($api.fixStatusBar(header));
if(api.systemType =='ios'){
      var browser = api.require('webBrowser');
      browser.openView({
          url: api.pageParam.url,

		  		  // 进度条颜色
		  progress:{
          color: "#000"
         },
          rect: {
              x: 0,
            y: $api.fixStatusBar(header)+100,
            w: 'auto',
              h: 300,
          }
      }, function(ret, err) {

          switch (ret.state) {
              case 0:
                  break;
              case 1:
                  break;
              case 2:

                  break;
              case 3:
                  break;
              case 4:
                  break;
              default:
                  break;
          };

      });
}else{
      var browser = api.require('webBrowser');
      browser.openView({
          url: api.pageParam.url,

		  		  // 进度条颜色
		  progress:{
          color: "#000"
         },
          rect: {
              x: 0,
            y: $api.fixStatusBar(header)+67,
            w: 'auto',
              h: 300,
          }
      }, function(ret, err) {

          switch (ret.state) {
              case 0:
                  break;
              case 1:
                  break;
              case 2:

                  break;
              case 3:
                  break;
              case 4:
                  break;
              default:
                  break;
          };

      });
}

		if(api.pageParam.needRecordHistory){

			record_play_history();

		}else{

		}





 }

    function getCaption(obj){
      var index=obj.lastIndexOf("\=");
      obj=obj.substring(index+1,obj.length);
      return obj;
    }






	function record_play_history(){
//	 alert(api.pageParam.title);
	  api.ajax({
	      url: api_url+'/login/login/playjilu',
           method: 'post',
	      data:{
	      	values:{
	      		uid: localStorage.getItem('user_id'),
	      		title: api.pageParam.title,
	      		url: api.pageParam.srcUrl,
	     // 		time: new Date().format('yyyy-MM-dd hh:mm:ss'),
	      		ping: getPing(api.pageParam.srcUrl)
	      	}
	      }
      },function(ret,err){
      });
	}

	function getPing(url){
		if(url.indexOf("youku.com")>0){
			return '优酷';
		}else if(url.indexOf("iqiyi.com")>0){
			return '爱奇艺';
		}else if(url.indexOf("v.qq.com")>0){
			return "腾讯"
    }else if(url.indexOf("tv.sohu.com")>0){
			return "搜狐"
    }else if(url.indexOf("fun.tv")>0){
      return "风行"
    }else if(url.indexOf("pptv.com")>0){
      return "pptv"
    }else if(url.indexOf("mgtv.com")>0){
      return "芒果"
    }else if(url.indexOf("1905.com")>0){
      return "M1905"
    }else if(url.indexOf("baofeng.com")>0){
      return "暴风"
    }else if(url.indexOf("le.com")>0){
      return "乐视"
    }else if(url.indexOf("xxooweizhiurl.com")>0){
      return "未知"
		}

	}




    function jieXi(){


      api.actionSheet({
          title: localStorage.getItem('app_name')+' VIP线路',
          cancelTitle: '取消',
          buttons: [localStorage.getItem('jx_url1_name'), localStorage.getItem('jx_url2_name'),localStorage.getItem('jx_url3_name'), localStorage.getItem('jx_url4_name'), localStorage.getItem('jx_url5_name'), localStorage.getItem('jx_url6_name'), localStorage.getItem('jx_url7_name'), localStorage.getItem('jx_url8_name'), localStorage.getItem('jx_url9_name')]
       }, function(ret, err) {
          var index = ret.buttonIndex;
          if (ret.buttonIndex==1) {
            vipHuanxian(localStorage.getItem('jx_url1'));
          }
          if (ret.buttonIndex==2) {
            vipHuanxian(localStorage.getItem('jx_url2'));
          }
          if (ret.buttonIndex==3) {
            vipHuanxian(localStorage.getItem('jx_url3'));
          }
          if (ret.buttonIndex==4) {
            vipHuanxian(localStorage.getItem('jx_url4'));
          }
          if (ret.buttonIndex==5) {
            vipHuanxian(localStorage.getItem('jx_url5'));
          }
          if (ret.buttonIndex==6) {
            vipHuanxian(localStorage.getItem('jx_url6'));
          }
          if (ret.buttonIndex==7) {
            vipHuanxian(localStorage.getItem('jx_url7'));
          }
          if (ret.buttonIndex==8) {
            vipHuanxian(localStorage.getItem('jx_url8'));
          }
          if (ret.buttonIndex==9) {
            vipHuanxian(localStorage.getItem('jx_url9'));
          }
      });
    }


    function vipHuanxian(jiekou){
      api.hideProgress();
      var browser = api.require('webBrowser');
      browser.loadUrl({
          url: jiekou+api.pageParam.srcUrl
      });



    }











    //////////////////////    解析播放页广告  方法  getDate  S  //////////////////////
      function getDate(){


												//播放页 - 文本广告

												var analysis_text_list = $api.byId('analysis_text_list');
												var analysis_text_template = $api.byId('analysis_text_template');

												//播放页 - BANNER

												var analysis_pay_banner_ad_list = $api.byId('analysis_pay_banner_ad_list');
												var analysis_pay_banner_ad_template = $api.byId('analysis_pay_banner_ad_template');

												//播放页 - 3小图

												var analysis_pay_three_diagram_ad_list = $api.byId('analysis_pay_three_diagram_ad_list');
												var analysis_pay_three_diagram_ad_template = $api.byId('analysis_pay_three_diagram_ad_template');




												api.ajax({
													url: api_url+'/login/login/jiexi_play_ad.html',    // 调用数量限制
													method: 'get',
													data: {
													  values: {
												key: 'ikmovie.xyz',   //安全码
													  }
												  }
												}, function(ret, err) {


													if(ret) {

														//播放页 - 文本广告
														var pagefn = doT.template(analysis_text_template.text);
														analysis_text_list.innerHTML = pagefn(ret);

														//播放页 - BANNER
														var pagefn = doT.template(analysis_pay_banner_ad_template.text);
														analysis_pay_banner_ad_list.innerHTML = pagefn(ret);

														//播放页 - 3小图
														var pagefn = doT.template(analysis_pay_three_diagram_ad_template.text);
														analysis_pay_three_diagram_ad_list.innerHTML = pagefn(ret);



														api.hideProgress();


													} else {
														api.hideProgress();
														//alert( JSON.stringify( err ) );
													}
												});




      }

    //////////////////////    解析播放页广告  方法  getDate  E  //////////////////////






		/////////////观看记录 方法  look_record   S   ////////////
		function look_record() {

        api.openWin({
            name: 'look_record_win',
            url: 'look_record_win.html',
        });


        api.addEventListener({
          name:'viewdisappear'
      },function(){
	  
	  
	  		var browser = api.require('webBrowser');
		browser.closeView();
	   
          api.closeWin({
               name:api.winName
          });
      });

		}
		/////////////观看记录 方法  look_record   E   ////////////



		/////////////分享好友 方法  ViewMoreYs   S   ////////////
		function share() {

        api.openWin({
            name: 'share_win',
            url: 'share_win.html',
        });

        api.addEventListener({
          name:'viewdisappear'
      },function(){
          api.closeWin({
               name:api.winName
          });
      });

		}
		/////////////分享好友 方法  ViewMoreYs   E   ////////////







  //访问轮播地址

  function toBanner(url){

    if (url == '') {

	//如果后台填写的跳转链接为空 则无任何操作

    }else{


	/*
				var str = url ;

				if(str.indexOf("widget://")>-1){   //如果包含 widget://  则执行内部页面跳转


								var str = url;
								var Internal_jump = str.split("widget://html/").join("");
								console.log(Internal_jump);    // 剔除 widget://html/ 后把结果给 Internal_jump


					　　		api.openWin({
								name: 'Internal_jump',
								url: Internal_jump
								});

*/

/*

设置中心  widget://html/shezhi_win.html
我的佣金  widget://html/yongjin_win.html
佣金明细  widget://html/yongjinlog_win.html
私人视频  widget://html/video_secret_win.html
升级会员  widget://html/upgrade_vip_win.html
直播专题  widget://html/tv_special_win.html
我的团队  widget://html/tuandui_win.html
提现记录  widget://html/tixianlog_win.html
邀请好友  widget://html/share_win.html
搜索页面  widget://html/search_win.html
观看记录  widget://html/look_record_win.html
我的积分  widget://html/jifen_win.html
帮助中心  widget://html/help_win.html
我的激活码  widget://html/gokalog_win.html
游戏直播间  widget://html/game_zhubo_list_win.html
公告列表  widget://html/artical_win.html
专属客服  widget://html/setup/customer_service_win.html




*/

				if(url == '设置中心'){

					api.openWin({
						name: 'shezhi_win',
						url: 'widget://html/shezhi_win.html',
						delay: 300
					});

				}else if(url == '我的佣金'){

					api.openWin({
						name: 'yongjin_win',
						url: 'widget://html/yongjin_win.html',
						delay: 300
					});
				}else if(url == '佣金明细'){

					api.openWin({
						name: 'yongjinlog_win',
						url: 'widget://html/yongjinlog_win.html',
						delay: 300
					});
				}else if(url == '私人视频'){

					api.openWin({
						name: 'video_secret_win',
						url: 'widget://html/video_secret_win.html',
						delay: 300
					});
				}else if(url == '升级会员'){

					api.openWin({
						name: 'upgrade_vip_win',
						url: 'widget://html/upgrade_vip_win.html',
						delay: 300
					});
				}else if(url == '直播专题'){

					api.openWin({
						name: 'tv_special_win',
						url: 'widget://html/tv_special_win.html',
						delay: 300
					});
				}else if(url == '我的团队'){

					api.openWin({
						name: 'tuandui_win',
						url: 'widget://html/tuandui_win.html',
						delay: 300
					});
				}else if(url == '提现记录'){

					api.openWin({
						name: 'tixianlog_win',
						url: 'widget://html/tixianlog_win.html',
						delay: 300
					});
				}else if(url == '邀请好友'){

					api.openWin({
						name: 'share_win',
						url: 'widget://html/share_win.html',
						delay: 300
					});
				}else if(url == '搜索页面'){

					api.openWin({
						name: 'search_win',
						url: 'widget://html/search_win.html',
						delay: 300
					});
				}else if(url == '观看记录'){

					api.openWin({
						name: 'look_record_win',
						url: 'widget://html/look_record_win.html',
						delay: 300
					});
				}else if(url == '我的积分'){

					api.openWin({
						name: 'jifen_win',
						url: 'widget://html/jifen_win.html',
						delay: 300
					});
				}else if(url == '帮助中心'){

					api.openWin({
						name: 'help_win',
						url: 'widget://html/help_win.html',
						delay: 300
					});
				}else if(url == '我的激活码'){

					api.openWin({
						name: 'gokalog_win',
						url: 'widget://html/gokalog_win.html',
						delay: 300
					});
				}else if(url == '游戏直播间'){

					api.openWin({
						name: 'game_zhubo_list_win',
						url: 'widget://html/game_zhubo_list_win.html',
						delay: 300
					});
				}else if(url == '公告列表'){

					api.openWin({
						name: 'artical_win',
						url: 'widget://html/artical_win.html',
						delay: 300
					});
				}else if(url == '专属客服'){

					api.openWin({
						name: 'customer_service_win',
						url: 'widget://html/setup/customer_service_win.html',
						delay: 300
					});


				}else{       // 否则执行正常H5页面跳转

							//	api.toast({
							//	msg: url
							//	});



			                api.openWin({
                            name: 'h5',
                            url: './h5.html',
                            pageParam: {
                                 url: url
								}
                             });


				}



	}
  }








</script>



</html>
